<?php

namespace App\Http\Controllers\Home;

use App\Models\Menu;
use Cookie;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class HomeController extends BaseController
{
    public function index()
    {
        $menu = $this->navMenu(1);
        return view($this->view . 'index');
    }
    public function setLocale($locale)
    {
        Cookie::queue('lang', $locale, 100000000);
        return redirect()->back();
    }
}
